<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/11/12
 * Time: 11:24
 */

// 应用目录为当前目录
define('APP_PATH', dirname(__DIR__).DIRECTORY_SEPARATOR);

// 开启调试模式
define('APP_DEBUG', true);

// 加载框架文件
require(APP_PATH . 'fastphp'.DIRECTORY_SEPARATOR.'Fastphp.php');

// 加载配置文件
$config = require(APP_PATH . 'config/config.php');

// 实例化框架类
(new fastphp\Fastphp($config))->run();